<template>
	<view>
		<button @click="callPhone()">打电话</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			 callPhone() {
			                // #ifdef APP-PLUS
							uni.makePhoneCall({
								phoneNumber: '',
								success: function() {
									console.log("拨打电话成功！")
								},
								fail: function() {
									console.log("拨打电话失败！")
								}
							})
			                // #endif
			 
			                // #ifdef MP-WEIXIN
			                wx.makePhoneCall({
								phoneNumber: 'xxx电话号码',
								success: function() {
									console.log("拨打电话成功！")
								},
								fail: function() {
									console.log("拨打电话失败！")
								}
							})
			               // #endif
						}
			
		}
	}
</script>

<style lang="scss">

</style>
